package cn.semes.system.controller;

import cn.semes.basic.query.BaseQuery;
import cn.semes.basic.util.PageList;

import cn.semes.system.domain.Log;
import cn.semes.system.service.ILogServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {


    @Autowired
    private ILogServiceImpl service;



    @PostMapping()
    public PageList<Log> queryByPage(@RequestBody BaseQuery query) {
        return service.queryByPage(query);
    }

}
